x86/mm/shadow: remove dead code for avoiding Xen entries on 32-bit tables.
authorTim Deegan <tim@xen.org>
Thu, 2 May 2013 10:37:56 +0000 (11:37 +0100)
committerTim Deegan <tim@xen.org>
Thu, 9 May 2013 12:00:26 +0000 (13:00 +0100)
commit078654af2de6733fb5b3da1e07c1962832e998c1
tree500f15c3b082450f5e7b8643c1e29f3cf2cabb03
parent3b38da86878c36a7ec3e020879a0de3f5b293d95
x86/mm/shadow: remove dead code for avoiding Xen entries on 32-bit tables.

All non-external-mode (==PV) guests have 4-level pagetables now that
the PAE build of Xen is gone.

This patch should have no effect, since the condition it removes could
never be true anyway: the l2 offset of HYPERVISOR_VIRT_START on 64-bit
Xen is much higher than any l2 offset we could have seen in the
tables (and indeed bigger than the 'int' type, which clang was
complaining about).  Actual compat PV guest xen entries are handled by
the equivalent test in the 64-bit SHADOW_FOREACH_L2E() below.

Reported-by: Julien Grall <julien.grall@linaro.org>
Signed-off-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/shadow/multi.c